﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Service.Contract
{
    [Serializable]
    public class ReqUploadViewStateData
    {
        /// <summary>
        /// 是否包含了心跳视图状态
        /// true：包含
        /// false：不包含
        /// 如果不包含视图状态那么就不用比较视图状态
        /// </summary>
        public bool HasViewState { get; set; }
        public long ViewStateAge { get; set; }
        public string ViewStateToken { get; set; }
        public string ViewStateSolution { get; set; }

        public string MainServerIP { get; set; }

        public int MainServerPort { get; set; }

        public ReqUploadViewStateData()
        {
            HasViewState = false;
        }

        public ReqUploadViewStateData(string solution, long age, string token)
        {
            HasViewState = true;
            ViewStateSolution = solution;
            ViewStateAge = age;
            ViewStateToken = token;
        }
    }
}
